﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Designer.UI
{
    /// <summary>
    /// 方案上的节点变化事件
    /// </summary>
    public interface ISolutionItemChangedEventReceiver
    {
        //void OnSolutionItemCreated(string type, Coolzon.Metadata.NodeBase itemMetadata);
        /// <summary>
        /// 创建方案完成
        /// </summary>
        /// <param name="solutionMetdata"></param>
        void OnSolutionCreated(Coolzon.Metadata.Solution solutionMetdata);

        /// <summary>
        /// 创建场景完成
        /// </summary>
        /// <param name="sceneMetadata"></param>
        void OnSceneCreated(Coolzon.Metadata.Scene sceneMetadata);

        ///// <summary>
        ///// 创建区域完成
        ///// </summary>
        ///// <param name="areaMetadata"></param>
        //void OnAreaCreated(Coolzon.Metadata.Area areaMetadata);

        /// <summary>
        /// 组件实例被创建
        /// </summary>
        /// <param name="parentPart"></param>
        /// <param name="createdPart"></param>
        void OnPartInstanceCreated(Coolzon.UI.IPartContainer parentPart, Coolzon.UI.Part createdPart);
    }
}
